import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'layout',
      component: () => import('../views/layout/LayoutContainer.vue'),
      redirect: '/home',
      children: [
        {
          path: '/home',
          name: 'home',
          component: () => import('../views/home/HomeView.vue')
        },
        {
          path: '/about',
          name: 'about',
          component: () => import('../views/about/AboutView.vue')
        },
        {
          path: '/course',
          name: 'course',
          component: () => import('../views/course/CourseView.vue')
        },
        {
          path: '/team',
          name: 'team',
          component: () => import('../views/team/TeamView.vue')
        },
        {
          path: '/achievement',
          name: 'achievement',
          component: () => import('../views/achievement/AchievementView.vue')
        }
      ]
    }
  ]
})

export default router
